home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gekikoh Dennoh Club 7
/
Gekikoh Dennoh Club Vol. 7 (Japan).7z
/
Gekikoh Dennoh Club Vol. 7 (Japan) (Track 01).bin
/
games
/
saru
/
datamake
/
rmk.c
< prev
next >
Wrap
C/C++ Source or Header
|
1999-06-15
|
1KB
|
68 lines
/*
@>rmk > rtest.bat
で回転音源
*/
#include <math.h>
#define RAD (3.1415926535/180)
main()
{
int theta,rr=1050;
int manx=1100,many=1250; //人間位置
char *inFilename="1005_011.m44";
for( theta=0; theta<=85; theta+=5 ){
printf(
":L%03d\n"
"vspace1 %s /s%d,%d\n /m%d,%d\n"
"lrmix out0fl.m44 out0fr.m44 out0f.s44\n"
"lrmix out1fl.m44 out1fr.m44 out1f.s44\n"
"lrmix out1ll.m44 out1lr.m44 out1l.s44\n"
"lrmix out1bl.m44 out1br.m44 out1b.s44\n"
"lrmix out1rl.m44 out1rr.m44 out1r.s44\n"
"mix out0f.s44 out1f.s44 out1l.s44 out1b.s44 out1r.s44 /out.s44\n"
"copy out.s44 L%03d.s44\n",
theta*10,
inFilename,
manx-(int)((float)rr*sin(theta*RAD)),
many+(int)((float)rr*cos(theta*RAD)),
manx,
many,
theta*10
);
printf(
":R%03d\n"
"vspace1 %s /s%d,%d /m%d,%d\n"
"lrmix out0fl.m44 out0fr.m44 out0f.s44\n"
"lrmix out1fl.m44 out1fr.m44 out1f.s44\n"
"lrmix out1ll.m44 out1lr.m44 out1l.s44\n"
"lrmix out1bl.m44 out1br.m44 out1b.s44\n"
"lrmix out1rl.m44 out1rr.m44 out1r.s44\n"
"mix out0f.s44 out1f.s44 out1l.s44 out1b.s44 out1r.s44 /out.s44\n"
"copy out.s44 R%03d.s44\n",
theta*10,
inFilename,
manx+(int)((float)rr*sin(theta*RAD)),
many+(int)((float)rr*cos(theta*RAD)),
manx,
many,
theta*10
);
}
}